package com.hit.aircraftwar.creator;


import com.hit.aircraftwar.basic.AbstractFlyingObject;
import com.hit.aircraftwar.supply.FireSupply;

/**
 * @author LiuYuZhe
 */
public class FireSupplyCreator implements Creator {

    /**
     * 火力道具基础参数
     */
    private final int effect = 5;

    @Override
    public AbstractFlyingObject creatObject(int locationX, int locationY) {
        return new FireSupply(
                locationX,
                locationY,
                this.effect
        );
    }

    @Override
    public AbstractFlyingObject creatObject() {
        return new FireSupply(
                0,
                0,
                this.effect
        );
    }
}
